<template>
  <div>
    <el-card>
      <div style="padding: 0 0 20px 0;">
        <el-breadcrumb separator-class="el-icon-arrow-right">
          <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
          <el-breadcrumb-item>账号信息</el-breadcrumb-item>
        </el-breadcrumb>
      </div>
      <el-row>
        <el-col :span="12" >
          <el-form label-width="200px">
            <el-form-item label="手机号">
              <el-input
                disabled
                v-model="formData.moblie"
                placeholder="手机号"
              ></el-input>
            </el-form-item>
            <el-form-item label="昵称">
              <el-input
                v-model="formData.nick_name"
                placeholder="昵称"
              ></el-input>
            </el-form-item>
            <el-form-item label="真实姓名">
              <el-input
                v-model="formData.real_name"
                placeholder="真实姓名"
              ></el-input>
            </el-form-item>
            <el-form-item label="邮箱">
              <el-input
                v-model="formData.email"
                placeholder="邮箱"
              ></el-input>
            </el-form-item>
            <el-form-item label="QQ">
              <el-input
                v-model="formData.qq"
                placeholder="QQ"
              ></el-input>
            </el-form-item>
            <el-form-item label="微信">
              <el-input
                v-model="formData.weixin"
                placeholder="微信"
              ></el-input>
            </el-form-item>
            <el-form-item label="代理商Logo">
              <el-input
                v-model="formData.nick_dllogo"
                placeholder="代理商Logo"
              ></el-input>
            </el-form-item>
            <el-form-item label="代理商名称">
              <el-input
                v-model="formData.nick_dltitle"
                placeholder="代理商名称"
              ></el-input>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" @click="saveData">保存</el-button>
            </el-form-item>
          </el-form>
          
        </el-col>        
      </el-row>
    </el-card>
  </div>
</template>

<script>
import {info,save} from "@/api/agent/index.js"
export default {
  data(){
    return {
      formData:{

      }
    }
  },
  created(){
    this.getData();
  },
  methods:{
    getData(){
      info().then(res=>{
        this.formData = res.data;
        console.log(res,'res')
      })
    },
    saveData(){
      save(this.formData).then(res=>{
        this.$message.success("保存成功")        
      })
    }
  }
};
</script>

<style scoped></style>
